.content {
  flex: 1;
  padding: 20px 0;
  overflow: auto;

  .user-card {
    display: flex;
    align-items: center;
    background-color: rgb(245, 243, 243);
    width: 100%;
    transform: scale(var(--scale-factor)); // 应用缩放因子
    transform-origin: top left; // 从左上角缩放

    .ant-card-body {
      display: flex;
      width: 100%;
      justify-content: space-between;
      padding: 0; // 移除内边距
      margin: 15px; // 移除外边距
    }

    .user-info {
      display: flex;
      align-items: center;
      gap: 20px;
      .user-info-span {
        display: flex;
        align-items: flex-end;

        h2 {
          color: #6ab960;
        }

        h1,
        h2,
        h3 {
          margin: 0;
        }

        h3 {
          margin-left: 10px;
        }
      }
    }
    .datePicker {
      h3 {
        margin-right: 10px;
      }
      display: flex;
      align-items: center;
      margin-left: auto;
    }
  }

  .attendanceRecord {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: auto;
    box-sizing: border-box; // 包括内边距在内的总宽度

    .attendanceRecord-left,
    .attendanceRecord-right {
      flex: 1;
      min-width: 300px;
    }

    .attendanceRecord-left {
      .accumulatedTimeTable-card {
        margin: 15px 0;
        border-radius: 0;
        width: 100%;
        height: auto;
        text-align: center;
        background-color: rgba(2, 71, 105);
        .ant-card-head {
          min-height: 0;
        }
        .ant-card-head-title {
          color: #fff;
        }
        .ant-card-body {
          padding: 0;
        }
        .accumulatedTimeTable {
          width: 100%;
          flex: 1;
        }
        .ant-table {
          border-radius: 0;
        }
        .ant-table-cell {
          text-align: center;
          span {
            color: rgba(2, 71, 105);
            font-weight: 600;
          }
        }
      }
    }

    .attendanceRecord-right {
      display: flex;
      flex-direction: column;
      .attendanceRecord-Button {
        .ant-btn {
          border-radius: 0;
        }
        .ant-select-selector {
          border-radius: 0;
        }
      }
      .startTime {
        display: flex;
        margin-top: 5px;
        p {
          font-weight: 500;
          color: rgba(180, 216, 176);
        }
        p:last-of-type {
          margin-left: 25px;
        }
      }
    }
  }
}
@media (max-width: 768px) {
  .attendanceRecord {
    flex-direction: column;
    align-items: center;
  }

  .attendanceRecord-left,
  .attendanceRecord-right {
    align-items: center;
    width: 100%;
    margin: 10px 0;
  }
}

@media (min-width: 768px) {
  .attendanceRecord-right {
    align-items: flex-end;
  }
}

@media (max-width: 768px) {
  .ant-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .user-card {
    flex-direction: column; // 竖着排列
    align-items: flex-start; // 左对齐

    .user-info {
      flex-direction: column; // 竖着排列用户信息
      align-items: flex-start; // 左对齐
      gap: 10px; // 添加间隔
    }

    .datePicker {
      justify-content: center;
      align-items: center;
      margin-top: 10px; // 上方间隔
      width: 100%; // 让日期选择器宽度为100%
    }
  }
}

:root {
  --scale-factor: 1; // 默认缩放因子
}

.attendanceRecord {
  transform: scale(var(--scale-factor)); // 应用缩放
  transform-origin: top left; // 从左上角缩放
}
